//
//  CedarDataBaseStore.h
//  CedarSuperCloud
//
//  Created by lshenrong on 2017/11/24.
//  Copyright © 2017年 cedarhd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LoginInfoRsp.h"
#import "DeviceInfoModel.h"

/**
 数据存储，保存到一个数据库
 */
@interface CedarDataBaseStore : NSObject


+ (instancetype)shareInstance;

/**
 保存token nil表示移除token
 */
- (void)setTokenForAppConfige:(NSString *)token;
/**
 获取token，也代表用户登录了
 */
- (NSString *)getTokenForAppConfige;


//登录信息
- (void)saveLoginInfo:(LoginInfoRsp *)loginInfo;
- (LoginInfoRsp *)getLoginInfo;


//app 引导页
- (void)setAppGuideConfige:(BOOL)hasShow;
- (BOOL)getAppGuideConfigeIfShow;

/**
 检测app是否检查更新
 */
- (BOOL)isNeedCheckUpdateApp;
- (void)setAppUpdateTime;


- (DeviceInfoModel *)getDeviceInfo;
- (void)saveDeviceInfo:(DeviceInfoModel *)deviceInfo;

- (void)syncUserData;
@end
